<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="x-ua-compatible" content="ie=7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>店铺退款处理页 - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/global.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/layout.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${sysResRoot}/front.css" rel="stylesheet" type="text/css"/>
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
function g(o){
	return document.getElementById(o);
}
</script>
</head>

<body>
[#include "../include/店铺页头顶栏.html"/]
<div id="head">
	[#include "../include/页头搜索栏.html"/]
    [#include "../include/页头导航栏.html"/]
</div>
[#include "../common/image_upload.html"/]
<div class="center mt10">
	 <div class="column_title"><span>退款申请</span></div>
     <div>
     <form id="jvForm" action="apply_update.jspx" method="post">
         <div class="login_box_left">
              <div class="login">
                   <table width="100%" border="0" cellspacing="2" cellpadding="0">
                     <tr>
                            <td height="55" width="120" align="right">退款服务类型：</td>
                            <td height="55" width="205">
                                [#if refund.delivered]已发货，但买家未收到，申请退款[#else]未发货，申请退款[/#if]
                            </td>
                     </tr>
                     <tr>
                         <td height="55" width="120" align="right">退款金额：</td>
                          <td height="55" width="205">${refund.refundMoney!0.0}订单总额：${order.total!}元</td>
                     </tr>
                     <tr>
                          <td height="55" width="120" align="right">补充留言：</td>
                          <td height="55" width="205">${refund.additionalwords!}</td>
                     </tr>
                      <tr>
                            <td height="55" width="120" align="right" style="font-size:14px;"><font color="red">*</font>处理方式：</td>
                            <td height="55" width="205">
                               <select name="status" class="required">
                                 <option value="">--请选择--</option>
                                 <option value="1"[#if refund.status==1]selected[/#if]>同意退款</option>
                                 <option value="2" [#if refund.status==2]selected[/#if]>不同意退款</option>
                               </select>
                            </td>
                     </tr>
                      <tr>
                            <td height="55" width="120" align="right" style="font-size:14px;">卖家留言：</td>
                            <td height="55" width="205">
                            <textarea name="saleadditionalwords" cols="50" rows="5">${refund.saleadditionalwords!}</textarea></td>
                     </tr>
                       [#if refund.status==2]
                     <tr>
                          <td height="55" width="120" align="right">申请平台商介入：</td>
                          <td height="55" width="205">
                             <input type="radio" name="intervene" value="true"/>是&nbsp;&nbsp;
                             <input type="radio" name="intervene" value="false" checked="checked"/>否
                          </td>
                     </tr>
                     [#if refund.plateadditionalwords??]
                       <tr>
                          <td height="55" width="120" align="right">申请平台商留言：</td>
                          <td height="55" width="205">
                             ${refund.plateadditionalwords!}
                          </td>
                     </tr>
                     [/#if]
                     [/#if]
                      <tr>
                         <td height="55" width="120" align="right">
                              <input type="hidden" name="id" value="${refund.id}"/>
                            </td>
                            <td height="55" width="205"><input type="submit" value="处理申请"  class="login_button"/></td>
                     </tr>
                   </table>
              </div>
          </div>
          <textarea id="picTable" style="display: none;">
<table id="picTable{0}" border="0" style="float: left;">
<tr>
	<td align="center">
      <div>
       <a href="javascript:void(0);" onclick="$('#picTable{0}').remove();" class="pn-opt">删除</a>
	   <img id="preImg{0}" noResize="true" style="overflow:hidden;width:90px;height:90px;background-color:#ccc;border:1px solid #333"/>
		<input type="text" id="uploadImgPath{0}" name="fashionPic" style="width: 160px" class="required"/>
		 <a href="javascript:void(0);" onclick="$('#picTable{0}').remove();" class="pn-opt"></a></div>
	    <div><span id="ufc{0}"><input type="file" id="uploadFile{0}" size="10" style="width: 150px" /></span> 
		     <input type="button" value="上传" onclick="upload({0});"/></div>
	  </td>
</tr>
</table>
</textarea>
       </form>   
       	 <script type="text/javascript">
      var picIndex = 1;
	  var picTpl = $.format($("#picTable").val());
	   function addPicLine() {
		$('#picBefore').before(picTpl(picIndex++));
	   }
     </script>
        <div class="line"></div>
          <div class="login_zc">
          	 <table width="100%" border="0" cellspacing="2" cellpadding="0">
               <tr>
                  <td height="55" width="325" align="left" colspan="2"><h5>宝贝信息</h5></td>
              </tr>
              [#list order.items as item]
               <tr>
                  <td height="55" width="70" align="right"><img src="${root}/${item.product.coverImg!}" width="50" height="50"/></td>
                  <td height="55" width="255">[@text_cut s=item.product.name len='10' append='...'/]</td>
              </tr>
              [/#list]
               <tr>
                  <td height="55" width="70" align="right">卖家:</td>
                  <td height="55" width="255">${order.store.storeName!}</td>
              </tr>
              <tr>
                  <td height="55" width="325" align="right" colspan="2">
                  <a class="aBlu" href="../orderSt/view.jspx?orderId=${order.id}" target="_blank">查看订单详情>></a></td>
              </tr>
            </table>
          </div>
          <div class="clear"></div>
     </div>
</div>
[#include "../include/页脚信息栏.html"/]
</body>
</html>
